package map;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class HashMapTest {

    public static void main(String[] args) {
        Map<String,String> map = new HashMap<String,String>(9);
        map.put("1","1");

        for (String keys :map.keySet()){
            map.get(keys);
        }

        for (Map.Entry entry: map.entrySet()){
            entry.getValue();
            entry.getKey();
        }

        for (String v :map.values()){
            System.out.println(v);
        }

        while (map.entrySet().iterator().hasNext()){
            Map.Entry<String, String> next = map.entrySet().iterator().next();
            next.getKey();
            next.getValue();
        }

    }
}
